using System;
using System.Collections.Generic;
using System.Text;

namespace MCromwell.StaffIntranet.Core
{
    [Flags]
    public enum StaffPhotoSavingOptions
    {
        Update = 1,
        Leave = 2,
        Clear = 3
    }

    public interface IStaffRepository
    {
        IList<Staff> WithPagingFindBy(StaffSearchCriteria Criteria, int StartRowIndex, int MaximumRowSize, out int Total);
        Staff FindBy(int id);
        Staff FindWithSame(string lastname, string firstname);
        int Update(Staff staff, StaffPhotoSavingOptions photoSavingOptions);
        void DeleteStaffBy(int staffId);
    }
}
